<? $section='Users';?>

<?
	require_once 'inc/functions.php';
	require_once 'Users/data.php';
	$result = getAll();
	
	
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="inc/tabs.css"/>
<title> About Us </title>
</head>
<body>

<? include("inc/tabs.php"); ?>
<div align="center">
<h1> Users </h1>

<h2> List of Users </h2>
<table border="1">
	<tr>
    	
        <th>ID</th>
        <th>FirstName</th>
        <th>LastName</th>
        <th>Lookup ID</th>
        <th>Room</th>
        </tr>
        <? while ($rs = $result->fetch_assoc())
		{?>
        <tr>
       
        <td><?=$rs['id']?></td>
        <td><?=$rs['FirstName']?></td>
        <td><?=$rs['LastName']?></td>
        <td><?=$rs['Lookup_id']?></td>
        <td><?=$rs['Room']?></td>
        </tr>
        <? } ?>
        </table>
        <table border="1">
	<tr>
    	
        <th>ID</th>
        <th>FirstName</th>
        <th>LastName</th>
        <th>Lookup ID</th>
         <th>Room</th>
        </tr>
        <? while ($rs = $result->fetch_assoc())
		{?>
        <tr>
       
        <td><?=$rs['id']?></td>
        <td><?=$rs['FirstName']?></td>
        <td><?=$rs['LastName']?></td>
        <td><?=$rs['Lookup_id']?></td>
        </tr>
        <? } ?>
        </table>
        
        
</div>
</body>
</html>
<? $conn->close(); ?>
